package com.tutu.swagger.entity;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * @Program: SpringBoot
 * @Description:
 * @Author: JK.TuTu
 * @Create: 2022-11-04 22:35
 **/
@ApiModel(description = "用戶实体类")  //描述实体类型
public class User {
   @ApiModelProperty(value = "用户编号")
    private String id;
    @ApiModelProperty(value = "用户姓名")
    private String name;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public User(String id, String name) {
        this.id = id;
        this.name = name;
    }
}
